<?php 
$interfaces = array();
$interfaces['argument_parsedable'] = "./router/interfaces/argument_parsedable.php";
$interfaces['class_controller_creatable'] = "./router/interfaces/class_controller_creatable.php";
$interfaces['class_loadable'] = "./router/interfaces/class_loadable.php";
$interfaces['class_loadable'] = "./router/interfaces/load_classable.php";
$interfaces['class_name_composable'] = "./router/interfaces/class_name_composable.php";
$interfaces['controller_loadable'] = "./router/interfaces/controller_loadabale.php";
$interfaces['path_controller_creatable'] = "./router/interfaces/path_controller_cratable.php";
try {
	foreach($interfaces as $key => $value){
		if(file_exists($value)){
			require_once($value);
		}
		else {
			throw new Exception('Nie można załadować pliku: '.$value);
		}
	}
}
catch(Exception $e){
	return $e->getMessage();
}